package com.example.employee.web.controller;

import com.example.employee.model.EmployeeModel;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
@Api(tags = "员工接口", produces = "application/json")
public class EmployeeController {

    @Operation(summary = "用户列表", method = "GET")
    @GetMapping("/employee/list")
    public List<EmployeeModel> list() {
        return Arrays.asList(
                new EmployeeModel(1L, "hello", "wolrd", 2000, 500),
                new EmployeeModel(2L, "good", "bye", 3000, null));
    }

}
